package com.subang.function.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.subang.function.mapper.SbPkRoomUserMapper;
import com.subang.function.domain.SbPkRoomUser;
import com.subang.function.service.ISbPkRoomUserService;

/**
 * PK房间用户关联Service业务层处理
 * 
 * @author subei
 * @date 2025-09-14
 */
@Service
public class SbPkRoomUserServiceImpl implements ISbPkRoomUserService 
{
    @Autowired
    private SbPkRoomUserMapper sbPkRoomUserMapper;

    /**
     * 查询PK房间用户关联
     * 
     * @param id PK房间用户关联主键
     * @return PK房间用户关联
     */
    @Override
    public SbPkRoomUser selectSbPkRoomUserById(Long id)
    {
        return sbPkRoomUserMapper.selectSbPkRoomUserById(id);
    }

    /**
     * 查询PK房间用户关联列表
     * 
     * @param sbPkRoomUser PK房间用户关联
     * @return PK房间用户关联
     */
    @Override
    public List<SbPkRoomUser> selectSbPkRoomUserList(SbPkRoomUser sbPkRoomUser)
    {
        return sbPkRoomUserMapper.selectSbPkRoomUserList(sbPkRoomUser);
    }

    /**
     * 新增PK房间用户关联
     * 
     * @param sbPkRoomUser PK房间用户关联
     * @return 结果
     */
    @Override
    public int insertSbPkRoomUser(SbPkRoomUser sbPkRoomUser)
    {
        return sbPkRoomUserMapper.insertSbPkRoomUser(sbPkRoomUser);
    }

    /**
     * 修改PK房间用户关联
     * 
     * @param sbPkRoomUser PK房间用户关联
     * @return 结果
     */
    @Override
    public int updateSbPkRoomUser(SbPkRoomUser sbPkRoomUser)
    {
        return sbPkRoomUserMapper.updateSbPkRoomUser(sbPkRoomUser);
    }

    /**
     * 批量删除PK房间用户关联
     * 
     * @param ids 需要删除的PK房间用户关联主键
     * @return 结果
     */
    @Override
    public int deleteSbPkRoomUserByIds(Long[] ids)
    {
        return sbPkRoomUserMapper.deleteSbPkRoomUserByIds(ids);
    }

    /**
     * 删除PK房间用户关联信息
     * 
     * @param id PK房间用户关联主键
     * @return 结果
     */
    @Override
    public int deleteSbPkRoomUserById(Long id)
    {
        return sbPkRoomUserMapper.deleteSbPkRoomUserById(id);
    }
}
